<?php
class Merchant_Model_ProductPackage
{
	protected $_table;
	
	public function __construct(){
		$this->_table = new Merchant_Model_DbTable_ProductPackage();
	}
	
	public static function getInstance(){
		return new Merchant_Model_Product();
	}
	
	/**
	* 获得dbtable对象
	* @return Zend_Db_Table_Abstract
	*/
	public function getDbTable(){
		return $this->_table;
	}
	public function getAdapter(){
		return $this->_table->getAdapter();
	}
	 
	public function getPackage($val,$file='pp_id'){
		$where = $this->_table->getAdapter()->quoteInto("$file = ?",$val);		 
		return $this->_table->fetchRow($where);
	}
	
	 
}